<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
                        <input type="hidden" name="parentId" th:value="${sysDept.parentId}"/>
                        <input type="hidden" name="deptId" th:value="${sysDept.id}"/>
						<form class="form-horizontal m-t" id="signupForm">
							<input id="id" name="id" th:value="${user.id}" type="hidden">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户名：</label>
                                <div class="col-sm-8">
                                    <input id="mobile" name="mobile" class="form-control"
                                           type="text" th:value="${user.mobile}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">姓名：</label>
                                <div class="col-sm-8">
                                    <input id="cnName" name="cnName" th:value="${user.cnName}" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">密码：</label>
                                <div class="col-sm-8">
                                    <input id="password" name="password" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户类型：</label>
                                <div class="col-sm-8">
                                    <select id="type" name="type" class="form-control" onchange="selectDept();">
                                        <option value="1" th:selected="${1 eq user.type}">组织部用户</option>
                                        <option value="2" th:selected="${2 eq user.type}">街道用户</option>
                                        <option value="3" th:selected="${3 eq user.type}">社区用户</option>
                                        <option value="4" th:selected="${4 eq user.type}">协助单位用户</option>
                                    </select>
                                </div>
                            </div>
                            <div id="deptArea">

                            </div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:src="@{/js/appjs/hbManage/user/edit.js}">
	</script>
</body>
</html>
